package com.middlegroup.pay.service.impl;

import com.middlegroup.common.model.TransRequest;
import com.middlegroup.common.model.TransResult;
import com.middlegroup.pay.service.ProtocolPayService;
import com.middlegroup.pay.service.SubjectPayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by pc on 2019/1/14.
 */
@Service
public class ProtocolServiceImpl implements ProtocolPayService {

    @Resource
    private SubjectPayService subjectPayService;

    @Override
    public TransResult protocolPay(TransRequest request) {
        return subjectPayService.protocolPay(request);
    }
}
